import 'package:event_bus/event_bus.dart';
import 'reader_entity.dart';

enum Task { borrow, toMine }


class CurrentTaskEntity{


  String? uid;
  String? uName;
  int offset = 0;
  Task? task;
  // bool isSet = false;
  bool needCheckCount = false;

  ReaderEntity? readerEntity;

  // 静态变量
  static final CurrentTaskEntity _singleton = CurrentTaskEntity._internal();

  // 工厂方法
  factory CurrentTaskEntity() {
    return _singleton;
  }

  // 私有构造函数
  CurrentTaskEntity._internal();


  void clear(){
    uid = null;
    uName = null;
    // isSet = false;
    needCheckCount = false;
    offset = 0;
    task = null;
    readerEntity = null;
  }


}